home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransEdit 3.05.sit / TransEdit v 3.05 / FakeAlert.c < prev    next >
MacBinary  |  1994-02-21  |  7.4 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Feb 21 18:42:02 1994, modified Mon Feb 21 18:42:02 1994, creator Think C, type ASCII, 6650 bytes "FakeAlert.c" , at 0x1a7a 716 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 46 61 6b 65 41 6c | 65 72 74 2e 63 00 00 00 |..FakeAl|ert.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 19 fa 00 | 00 02 cc a9 8e f7 4a a9 |........|......J.|
|00000060| 8e f7 4a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..J.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ab 07 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 49 6e | 2d 6d 65 6d 6f 72 79 20 |/*. * In|-memory |
|00000090| 69 74 65 6d 20 6c 69 73 | 74 20 66 6f 72 20 64 69 |item lis|t for di|
|000000a0| 61 6c 6f 67 20 77 69 74 | 68 20 66 69 76 65 20 69 |alog wit|h five i|
|000000b0| 74 65 6d 73 3a 0d 20 2a | 0d 20 2a 20 31 09 42 75 |tems:. *|. * 1.Bu|
|000000c0| 74 74 6f 6e 20 31 0d 20 | 2a 20 32 09 42 75 74 74 |tton 1. |* 2.Butt|
|000000d0| 6f 6e 20 32 0d 20 2a 20 | 33 09 42 75 74 74 6f 6e |on 2. * |3.Button|
|000000e0| 20 33 0d 20 2a 20 34 09 | 63 61 75 74 69 6f 6e 20 | 3. * 4.|caution |
|000000f0| 69 63 6f 6e 0d 20 2a 20 | 35 09 22 5e 30 5e 31 5e |icon. * |5."^0^1^|
|00000100| 32 5e 33 22 20 28 73 74 | 61 74 69 63 20 74 65 78 |2^3" (st|atic tex|
|00000110| 74 29 0d 20 2a 20 36 09 | 75 73 65 72 20 69 74 65 |t). * 6.|user ite|
|00000120| 6d 20 28 66 6f 72 20 6f | 75 74 6c 69 6e 69 6e 67 |m (for o|utlining|
|00000130| 20 64 65 66 61 75 6c 74 | 20 62 75 74 74 6f 6e 29 | default| button)|
|00000140| 0d 20 2a 0d 20 2a 20 54 | 68 65 20 63 61 6c 6c 65 |. *. * T|he calle|
|00000150| 72 20 6f 66 20 46 61 6b | 65 41 6c 65 72 74 20 70 |r of Fak|eAlert p|
|00000160| 61 73 73 65 73 20 74 68 | 65 20 66 6f 75 72 20 73 |asses th|e four s|
|00000170| 74 72 69 6e 67 73 20 74 | 68 61 74 20 61 72 65 20 |trings t|hat are |
|00000180| 74 6f 20 62 65 0d 20 2a | 20 73 75 62 73 74 69 74 |to be. *| substit|
|00000190| 75 74 65 64 20 69 6e 74 | 6f 20 74 68 65 20 66 69 |uted int|o the fi|
|000001a0| 72 73 74 20 69 74 65 6d | 2c 20 74 68 65 20 6e 75 |rst item|, the nu|
|000001b0| 6d 62 65 72 20 6f 66 20 | 62 75 74 74 6f 6e 73 20 |mber of |buttons |
|000001c0| 74 68 61 74 0d 20 2a 20 | 73 68 6f 75 6c 64 20 62 |that. * |should b|
|000001d0| 65 20 75 73 65 64 2c 20 | 61 6e 64 20 74 68 65 20 |e used, |and the |
|000001e0| 74 69 74 6c 65 73 20 74 | 6f 20 70 75 74 20 69 6e |titles t|o put in|
|000001f0| 74 6f 20 65 61 63 68 20 | 62 75 74 74 6f 6e 2e 0d |to each |button..|
|00000200| 20 2a 20 41 20 63 6f 70 | 79 20 6f 66 20 74 68 65 | * A cop|y of the|
|00000210| 20 69 74 65 6d 20 6c 69 | 73 74 20 69 73 20 68 61 | item li|st is ha|
|00000220| 63 6b 65 64 20 74 6f 20 | 75 73 65 20 74 68 65 20 |cked to |use the |
|00000230| 72 69 67 68 74 20 6e 75 | 6d 62 65 72 20 6f 66 0d |right nu|mber of.|
|00000240| 20 2a 20 62 75 74 74 6f | 6e 73 2e 0d 20 2a 0d 20 | * butto|ns.. *. |
|00000250| 2a 20 54 68 61 6e 6b 73 | 20 74 6f 20 45 72 69 6b |* Thanks| to Erik|
|00000260| 20 4b 69 6c 6b 20 61 6e | 64 20 4a 61 73 6f 6e 20 | Kilk an|d Jason |
|00000270| 48 61 69 6e 65 73 2e 20 | 20 53 6f 6d 65 20 6f 66 |Haines. | Some of|
|00000280| 20 74 68 65 20 73 74 75 | 66 66 20 74 6f 20 64 6f | the stu|ff to do|
|00000290| 0d 20 2a 20 74 68 69 73 | 20 69 73 20 6d 6f 64 69 |. * this| is modi|
|000002a0| 66 69 65 64 20 66 72 6f | 6d 20 63 6f 64 65 20 74 |fied fro|m code t|
|000002b0| 68 65 79 20 77 72 6f 74 | 65 2e 0d 20 2a 0d 20 2a |hey wrot|e.. *. *|
|000002c0| 20 31 37 20 4a 75 6e 20 | 39 32 0d 20 2a 20 2d 20 | 17 Jun |92. * - |
|000002d0| 53 65 74 20 74 68 65 20 | 61 44 65 66 49 74 65 6d |Set the |aDefItem|
|000002e0| 20 66 69 65 6c 64 20 6f | 66 20 74 68 65 20 64 69 | field o|f the di|
|000002f0| 61 6c 6f 67 20 74 65 6d | 70 6c 61 74 65 2c 20 73 |alog tem|plate, s|
|00000300| 6f 20 74 68 61 74 20 72 | 65 74 75 72 6e 2f 65 6e |o that r|eturn/en|
|00000310| 74 65 72 0d 20 2a 20 6b | 65 79 20 70 72 6f 70 65 |ter. * k|ey prope|
|00000320| 72 6c 79 20 65 71 75 69 | 76 61 6c 65 6e 63 65 20 |rly equi|valence |
|00000330| 74 6f 20 63 6c 69 63 6b | 69 6e 67 20 74 68 65 20 |to click|ing the |
|00000340| 64 65 66 61 75 6c 74 20 | 62 75 74 74 6f 6e 2e 0d |default |button..|
|00000350| 20 2a 20 30 35 20 4a 75 | 6e 20 39 33 0d 20 2a 20 | * 05 Ju|n 93. * |
|00000360| 2d 20 43 6f 6e 76 65 72 | 73 69 6f 6e 20 66 6f 72 |- Conver|sion for|
|00000370| 20 54 48 49 4e 4b 20 43 | 20 36 2e 30 2e 0d 20 2a | THINK C| 6.0.. *|
|00000380| 20 30 35 20 4a 75 6c 20 | 39 33 0d 20 2a 20 2d 20 | 05 Jul |93. * - |
|00000390| 52 65 70 6f 73 69 74 69 | 6f 6e 65 64 20 62 75 74 |Repositi|oned but|
|000003a0| 74 6f 6e 73 2e 20 20 41 | 6c 6c 20 61 72 65 20 6e |tons. A|ll are n|
|000003b0| 6f 77 20 69 6e 20 73 69 | 6e 67 6c 65 20 6c 69 6e |ow in si|ngle lin|
|000003c0| 65 2e 20 20 42 75 74 74 | 6f 6e 20 31 20 69 73 0d |e. Butt|on 1 is.|
|000003d0| 20 2a 20 72 69 67 68 74 | 6d 6f 73 74 2c 20 62 75 | * right|most, bu|
|000003e0| 74 74 6f 6e 20 32 20 69 | 6e 20 6d 69 64 64 6c 65 |tton 2 i|n middle|
|000003f0| 2c 20 61 6e 64 20 62 75 | 74 74 6f 6e 20 33 20 69 |, and bu|tton 3 i|
|00000400| 73 20 6c 65 66 74 6d 6f | 73 74 2e 20 20 41 73 20 |s leftmo|st. As |
|00000410| 6d 6f 72 65 0d 20 2a 20 | 62 75 74 74 6f 6e 73 20 |more. * |buttons |
|00000420| 61 72 65 20 75 73 65 64 | 2c 20 74 68 65 79 20 65 |are used|, they e|
|00000430| 78 74 65 6e 64 20 6d 6f | 72 65 20 74 6f 20 74 68 |xtend mo|re to th|
|00000440| 65 20 6c 65 66 74 2e 0d | 20 2a 20 31 38 20 44 65 |e left..| * 18 De|
|00000450| 63 20 39 33 0d 20 2a 20 | 2d 20 54 6f 6f 6b 20 6f |c 93. * |- Took o|
|00000460| 75 74 20 61 6c 6c 20 74 | 68 65 20 22 72 65 67 69 |ut all t|he "regi|
|00000470| 73 74 65 72 22 20 64 65 | 63 6c 61 72 61 74 69 6f |ster" de|claratio|
|00000480| 6e 73 2e 20 20 54 68 65 | 20 63 6f 6d 70 69 6c 65 |ns. The| compile|
|00000490| 72 27 73 20 73 6d 61 72 | 74 20 65 6e 6f 75 67 68 |r's smar|t enough|
|000004a0| 0d 20 2a 20 6e 6f 77 20 | 74 68 61 74 20 74 68 65 |. * now |that the|
|000004b0| 79 20 64 6f 6e 27 74 20 | 6d 61 6b 65 20 61 6e 79 |y don't |make any|
|000004c0| 20 64 69 66 66 65 72 65 | 6e 63 65 2c 20 73 6f 20 | differe|nce, so |
|000004d0| 74 68 65 79 27 72 65 20 | 6a 75 73 74 20 63 6c 75 |they're |just clu|
|000004e0| 74 74 65 72 2e 0d 20 2a | 20 2d 20 49 74 65 6d 20 |tter.. *| - Item |
|000004f0| 6c 69 73 74 20 68 61 6e | 64 6c 65 20 6d 61 64 65 |list han|dle made|
|00000500| 20 75 6e 70 75 72 67 61 | 62 6c 65 20 77 68 69 6c | unpurga|ble whil|
|00000510| 65 20 4d 6f 64 61 6c 44 | 69 61 6c 6f 67 28 29 20 |e ModalD|ialog() |
|00000520| 69 73 20 70 72 6f 63 65 | 73 73 69 6e 67 0d 20 2a |is proce|ssing. *|
|00000530| 20 64 69 61 6c 6f 67 20 | 61 6e 64 20 70 75 72 67 | dialog |and purg|
|00000540| 61 62 6c 65 20 61 66 74 | 65 72 77 61 72 64 2e 0d |able aft|erward..|
|00000550| 20 2a 20 31 38 20 4a 61 | 6e 20 39 34 0d 20 2a 20 | * 18 Ja|n 94. * |
|00000560| 2d 20 52 65 64 69 64 20 | 69 74 65 6d 20 6c 69 73 |- Redid |item lis|
|00000570| 74 20 74 6f 20 70 72 6f | 76 69 64 65 20 61 20 75 |t to pro|vide a u|
|00000580| 73 65 72 20 69 74 65 6d | 2e 20 20 44 65 66 61 75 |ser item|. Defau|
|00000590| 6c 74 20 62 75 74 74 6f | 6e 20 6f 75 74 6c 69 6e |lt butto|n outlin|
|000005a0| 69 6e 67 0d 20 2a 20 64 | 6f 6e 65 20 75 73 69 6e |ing. * d|one usin|
|000005b0| 67 20 53 6b 65 6c 53 65 | 74 44 6c 6f 67 42 75 74 |g SkelSe|tDlogBut|
|000005c0| 74 6f 6e 4f 75 74 6c 69 | 6e 65 72 28 29 2e 0d 20 |tonOutli|ner().. |
|000005d0| 2a 20 2d 20 55 6e 75 73 | 65 64 20 62 75 74 74 6f |* - Unus|ed butto|
|000005e0| 6e 73 20 61 72 65 20 6e | 6f 77 20 68 69 64 64 65 |ns are n|ow hidde|
|000005f0| 6e 2e 20 20 4e 6f 20 6d | 6f 72 65 20 6d 65 73 73 |n. No m|ore mess|
|00000600| 69 6e 67 20 77 69 74 68 | 20 63 68 61 6e 67 69 6e |ing with| changin|
|00000610| 67 20 74 68 65 20 6e 75 | 6d 62 65 72 0d 20 2a 20 |g the nu|mber. * |
|00000620| 6f 66 20 69 74 65 6d 73 | 20 69 6e 20 74 68 65 20 |of items| in the |
|00000630| 69 74 65 6d 20 6c 69 73 | 74 2e 0d 20 2a 20 2d 20 |item lis|t.. * - |
|00000640| 42 75 74 74 6f 6e 73 20 | 70 6f 73 69 74 69 6f 6e |Buttons |position|
|00000650| 65 64 20 6d 6f 72 65 20 | 69 6e 20 6c 69 6e 65 20 |ed more |in line |
|00000660| 77 69 74 68 20 41 70 70 | 6c 65 20 67 75 69 64 65 |with App|le guide|
|00000670| 6c 69 6e 65 73 2e 0d 20 | 2a 20 2d 20 41 6c 65 72 |lines.. |* - Aler|
|00000680| 74 20 77 69 6e 64 6f 77 | 20 70 6f 73 69 74 69 6f |t window| positio|
|00000690| 6e 65 64 20 6f 6e 20 74 | 68 65 20 66 72 6f 6e 74 |ned on t|he front|
|000006a0| 20 77 69 6e 64 6f 77 27 | 73 20 70 61 72 65 6e 74 | window'|s parent|
|000006b0| 20 64 65 76 69 63 65 20 | 6e 6f 77 2e 0d 20 2a 20 | device |now.. * |
|000006c0| 2d 20 46 61 6b 65 41 6c | 65 72 74 28 29 20 74 61 |- FakeAl|ert() ta|
|000006d0| 6b 65 73 20 61 20 70 61 | 72 61 6d 65 74 65 72 20 |kes a pa|rameter |
|000006e0| 69 6e 64 69 63 61 74 69 | 6e 67 20 74 68 65 20 43 |indicati|ng the C|
|000006f0| 61 6e 63 65 6c 20 62 75 | 74 74 6f 6e 2e 20 20 54 |ancel bu|tton. T|
|00000700| 68 69 73 20 61 6c 6c 6f | 77 73 0d 20 2a 20 69 74 |his allo|ws. * it|
|00000710| 20 74 6f 20 64 6f 20 6b | 65 79 20 6d 61 70 70 69 | to do k|ey mappi|
|00000720| 6e 67 20 66 6f 72 20 45 | 73 63 61 70 65 20 61 6e |ng for E|scape an|
|00000730| 64 20 43 6f 6d 6d 61 6e | 64 2d 70 65 72 69 6f 64 |d Comman|d-period|
|00000740| 2e 0d 20 2a 20 32 30 20 | 4a 61 6e 20 39 34 0d 20 |.. * 20 |Jan 94. |
|00000750| 2a 20 2d 20 41 64 64 65 | 64 20 61 20 63 61 75 74 |* - Adde|d a caut|
|00000760| 69 6f 6e 20 69 63 6f 6e | 20 74 6f 20 74 68 65 20 |ion icon| to the |
|00000770| 61 6c 65 72 74 20 69 74 | 65 6d 20 6c 69 73 74 2e |alert it|em list.|
|00000780| 0d 20 2a 2f 0d 0d 23 20 | 69 6e 63 6c 75 64 65 09 |. */..# |include.|
|00000790| 22 54 72 61 6e 73 53 6b | 65 6c 2e 68 22 0d 0d 23 |"TransSk|el.h"..#|
|000007a0| 20 69 6e 63 6c 75 64 65 | 09 22 54 72 61 6e 73 45 | include|."TransE|
|000007b0| 64 69 74 2e 68 22 0d 0d | 0d 2f 2a 20 69 6e 2d 6d |dit.h"..|./* in-m|
|000007c0| 65 6d 6f 72 79 20 69 74 | 65 6d 20 6c 69 73 74 20 |emory it|em list |
|000007d0| 2a 2f 0d 0d 0d 74 79 70 | 65 64 65 66 20 65 6e 75 |*/...typ|edef enu|
|000007e0| 6d 0d 7b 0d 09 62 75 74 | 74 6f 6e 31 49 74 65 6d |m.{..but|ton1Item|
|000007f0| 20 3d 20 31 2c 0d 09 62 | 75 74 74 6f 6e 32 49 74 | = 1,..b|utton2It|
|00000800| 65 6d 2c 0d 09 62 75 74 | 74 6f 6e 33 49 74 65 6d |em,..but|ton3Item|
|00000810| 2c 0d 09 63 61 75 74 69 | 6f 6e 49 63 6f 6e 49 74 |,..cauti|onIconIt|
|00000820| 65 6d 2c 0d 09 73 74 61 | 74 69 63 54 65 78 74 49 |em,..sta|ticTextI|
|00000830| 74 65 6d 2c 0d 09 6f 75 | 74 6c 69 6e 65 49 74 65 |tem,..ou|tlineIte|
|00000840| 6d 0d 7d 3b 0d 0d 0d 73 | 74 61 74 69 63 20 73 68 |m.};...s|tatic sh|
|00000850| 6f 72 74 09 69 74 65 6d | 4c 69 73 74 20 5b 5d 20 |ort.item|List [] |
|00000860| 3d 0d 7b 0d 09 35 2c 09 | 09 09 09 09 2f 2a 20 6d |=.{..5,.|..../* m|
|00000870| 61 78 20 6e 75 6d 62 65 | 72 20 6f 66 20 69 74 65 |ax numbe|r of ite|
|00000880| 6d 73 20 2d 20 31 20 2a | 2f 0d 0d 09 2f 2a 0d 09 |ms - 1 *|/.../*..|
|00000890| 20 2a 20 66 69 72 73 74 | 20 62 75 74 74 6f 6e 0d | * first| button.|
|000008a0| 09 20 2a 2f 0d 0d 09 30 | 2c 20 30 2c 09 09 09 09 |. */...0|, 0,....|
|000008b0| 09 09 09 09 2f 2a 20 72 | 65 73 65 72 76 65 20 61 |..../* r|eserve a|
|000008c0| 20 6c 6f 6e 67 20 66 6f | 72 20 69 74 65 6d 20 68 | long fo|r item h|
|000008d0| 61 6e 64 6c 65 20 2a 2f | 0d 09 31 30 35 2c 20 32 |andle */|..105, 2|
|000008e0| 36 30 2c 20 31 32 35 2c | 20 33 34 30 2c 09 09 09 |60, 125,| 340,...|
|000008f0| 09 09 2f 2a 20 64 69 73 | 70 6c 61 79 20 72 65 63 |../* dis|play rec|
|00000900| 74 61 6e 67 6c 65 20 2a | 2f 0d 09 28 28 63 74 72 |tangle *|/..((ctr|
|00000910| 6c 49 74 65 6d 2b 62 74 | 6e 43 74 72 6c 29 20 3c |lItem+bt|nCtrl) <|
|00000920| 3c 20 38 29 20 7c 20 30 | 2c 09 09 2f 2a 20 70 75 |< 8) | 0|,../* pu|
|00000930| 73 68 42 75 74 74 6f 6e | 2c 20 74 69 74 6c 65 20 |shButton|, title |
|00000940| 30 20 62 79 74 65 73 20 | 6c 6f 6e 67 20 2a 2f 0d |0 bytes |long */.|
|00000950| 0d 09 2f 2a 0d 09 20 2a | 20 73 65 63 6f 6e 64 20 |../*.. *| second |
|00000960| 62 75 74 74 6f 6e 0d 09 | 20 2a 2f 0d 0d 09 30 2c |button..| */...0,|
|00000970| 20 30 2c 09 09 09 09 09 | 09 09 09 2f 2a 20 72 65 | 0,.....|.../* re|
|00000980| 73 65 72 76 65 20 61 20 | 6c 6f 6e 67 20 66 6f 72 |serve a |long for|
|00000990| 20 69 74 65 6d 20 68 61 | 6e 64 6c 65 20 2a 2f 0d | item ha|ndle */.|
|000009a0| 09 31 30 35 2c 20 31 36 | 37 2c 20 31 32 35 2c 20 |.105, 16|7, 125, |
|000009b0| 32 34 37 2c 09 09 09 09 | 09 2f 2a 20 64 69 73 70 |247,....|./* disp|
|000009c0| 6c 61 79 20 72 65 63 74 | 61 6e 67 6c 65 20 2a 2f |lay rect|angle */|
|000009d0| 0d 09 28 28 63 74 72 6c | 49 74 65 6d 2b 62 74 6e |..((ctrl|Item+btn|
|000009e0| 43 74 72 6c 29 20 3c 3c | 20 38 29 20 7c 20 30 2c |Ctrl) <<| 8) | 0,|
|000009f0| 09 09 2f 2a 20 70 75 73 | 68 42 75 74 74 6f 6e 2c |../* pus|hButton,|
|00000a00| 20 74 69 74 6c 65 20 30 | 20 62 79 74 65 73 20 6c | title 0| bytes l|
|00000a10| 6f 6e 67 20 2a 2f 0d 0d | 09 2f 2a 0d 09 20 2a 20 |ong */..|./*.. * |
|00000a20| 74 68 69 72 64 20 62 75 | 74 74 6f 6e 0d 09 20 2a |third bu|tton.. *|
|00000a30| 2f 0d 0d 09 30 2c 20 30 | 2c 09 09 09 09 09 09 09 |/...0, 0|,.......|
|00000a40| 09 2f 2a 20 72 65 73 65 | 72 76 65 20 61 20 6c 6f |./* rese|rve a lo|
|00000a50| 6e 67 20 66 6f 72 20 69 | 74 65 6d 20 68 61 6e 64 |ng for i|tem hand|
|00000a60| 6c 65 20 2a 2f 0d 09 31 | 30 35 2c 20 32 30 2c 20 |le */..1|05, 20, |
|00000a70| 31 32 35 2c 20 31 30 30 | 2c 09 09 09 09 09 2f 2a |125, 100|,...../*|
|00000a80| 20 64 69 73 70 6c 61 79 | 20 72 65 63 74 61 6e 67 | display| rectang|
|00000a90| 6c 65 20 2a 2f 0d 09 28 | 28 63 74 72 6c 49 74 65 |le */..(|(ctrlIte|
|00000aa0| 6d 2b 62 74 6e 43 74 72 | 6c 29 20 3c 3c 20 38 29 |m+btnCtr|l) << 8)|
|00000ab0| 20 7c 20 30 2c 09 09 2f | 2a 20 70 75 73 68 42 75 | | 0,../|* pushBu|
|00000ac0| 74 74 6f 6e 2c 20 74 69 | 74 6c 65 20 30 20 62 79 |tton, ti|tle 0 by|
|00000ad0| 74 65 73 20 6c 6f 6e 67 | 20 2a 2f 0d 0d 09 2f 2a |tes long| */.../*|
|00000ae0| 0d 09 20 2a 20 69 63 6f | 6e 20 69 74 65 6d 0d 09 |.. * ico|n item..|
|00000af0| 20 2a 2f 0d 0d 09 30 2c | 20 30 2c 09 09 09 09 09 | */...0,| 0,.....|
|00000b00| 09 09 09 2f 2a 20 72 65 | 73 65 72 76 65 20 61 20 |.../* re|serve a |
|00000b10| 6c 6f 6e 67 20 66 6f 72 | 20 69 74 65 6d 20 68 61 |long for| item ha|
|00000b20| 6e 64 6c 65 20 2a 2f 0d | 09 31 30 2c 20 31 30 2c |ndle */.|.10, 10,|
|00000b30| 20 34 32 2c 20 34 32 2c | 09 09 09 09 09 09 2f 2a | 42, 42,|....../*|
|00000b40| 20 64 69 73 70 6c 61 79 | 20 72 65 63 74 61 6e 67 | display| rectang|
|00000b50| 6c 65 20 2a 2f 0d 09 28 | 28 69 63 6f 6e 49 74 65 |le */..(|(iconIte|
|00000b60| 6d 2b 69 74 65 6d 44 69 | 73 61 62 6c 65 29 20 3c |m+itemDi|sable) <|
|00000b70| 3c 20 38 29 20 7c 20 32 | 2c 09 2f 2a 20 69 63 6f |< 8) | 2|,./* ico|
|00000b80| 6e 20 28 64 69 73 61 62 | 6c 65 64 29 2c 20 69 63 |n (disab|led), ic|
|00000b90| 6f 6e 20 69 64 20 32 20 | 62 79 74 65 73 20 6c 6f |on id 2 |bytes lo|
|00000ba0| 6e 67 20 2a 2f 0d 09 32 | 2c 09 09 09 09 2f 2a 20 |ng */..2|,..../* |
|00000bb0| 69 63 6f 6e 20 32 20 2a | 2f 0d 0d 09 2f 2a 0d 09 |icon 2 *|/.../*..|
|00000bc0| 20 2a 20 73 74 61 74 54 | 65 78 74 20 69 74 65 6d | * statT|ext item|
|00000bd0| 0d 09 20 2a 2f 0d 0d 09 | 30 2c 20 30 2c 09 09 09 |.. */...|0, 0,...|
|00000be0| 09 09 09 09 09 2f 2a 20 | 72 65 73 65 72 76 65 20 |...../* |reserve |
|00000bf0| 61 20 6c 6f 6e 67 20 66 | 6f 72 20 69 74 65 6d 20 |a long f|or item |
|00000c00| 68 61 6e 64 6c 65 20 2a | 2f 0d 09 31 30 2c 20 35 |handle *|/..10, 5|
|00000c10| 32 2c 20 35 38 2c 20 33 | 34 30 2c 09 09 09 09 09 |2, 58, 3|40,.....|
|00000c20| 2f 2a 20 64 69 73 70 6c | 61 79 20 72 65 63 74 61 |/* displ|ay recta|
|00000c30| 6e 67 6c 65 20 2a 2f 0d | 09 28 28 73 74 61 74 54 |ngle */.|.((statT|
|00000c40| 65 78 74 2b 69 74 65 6d | 44 69 73 61 62 6c 65 29 |ext+item|Disable)|
|00000c50| 20 3c 3c 20 38 29 20 7c | 20 38 2c 09 2f 2a 20 73 | << 8) || 8,./* s|
|00000c60| 74 61 74 54 65 78 74 20 | 28 64 69 73 61 62 6c 65 |tatText |(disable|
|00000c70| 64 29 2c 20 74 65 78 74 | 20 38 20 62 79 74 65 73 |d), text| 8 bytes|
|00000c80| 20 6c 6f 6e 67 20 2a 2f | 0d 09 27 5e 30 27 2c 20 | long */|..'^0', |
|00000c90| 27 5e 31 27 2c 09 09 2f | 2a 20 5e 30 5e 31 5e 32 |'^1',../|* ^0^1^2|
|00000ca0| 5e 33 20 2a 2f 0d 09 27 | 5e 32 27 2c 20 27 5e 33 |^3 */..'|^2', '^3|
|00000cb0| 27 2c 0d 0d 09 2f 2a 0d | 09 20 2a 20 75 73 65 72 |',.../*.|. * user|
|00000cc0| 20 69 74 65 6d 20 66 6f | 72 20 64 65 66 61 75 6c | item fo|r defaul|
|00000cd0| 74 20 62 75 74 74 6f 6e | 20 6f 75 74 6c 69 6e 69 |t button| outlini|
|00000ce0| 6e 67 0d 09 20 2a 2f 0d | 0d 09 30 2c 20 30 2c 09 |ng.. */.|..0, 0,.|
|00000cf0| 09 09 09 09 09 09 09 2f | 2a 20 72 65 73 65 72 76 |......./|* reserv|
|00000d00| 65 20 61 20 6c 6f 6e 67 | 20 66 6f 72 20 69 74 65 |e a long| for ite|
|00000d10| 6d 20 68 61 6e 64 6c 65 | 20 2a 2f 0d 09 30 2c 20 |m handle| */..0, |
|00000d20| 30 2c 20 31 30 2c 20 31 | 30 2c 09 09 09 09 09 09 |0, 10, 1|0,......|
|00000d30| 09 2f 2a 20 64 69 73 70 | 6c 61 79 20 72 65 63 74 |./* disp|lay rect|
|00000d40| 61 6e 67 6c 65 20 28 66 | 61 6b 65 29 20 2a 2f 0d |angle (f|ake) */.|
|00000d50| 09 28 28 75 73 65 72 49 | 74 65 6d 2b 69 74 65 6d |.((userI|tem+item|
|00000d60| 44 69 73 61 62 6c 65 29 | 20 3c 3c 20 38 29 20 7c |Disable)| << 8) ||
|00000d70| 20 30 2c 09 2f 2a 20 75 | 73 65 72 49 74 65 6d 20 | 0,./* u|serItem |
|00000d80| 28 64 69 73 61 62 6c 65 | 64 29 2c 20 74 69 74 6c |(disable|d), titl|
|00000d90| 65 20 30 20 62 79 74 65 | 73 20 6c 6f 6e 67 20 2a |e 0 byte|s long *|
|00000da0| 2f 0d 7d 3b 0d 0d 0d 2f | 2a 0d 20 2a 20 48 69 64 |/.};.../|*. * Hid|
|00000db0| 65 20 61 20 64 69 61 6c | 6f 67 20 62 75 74 74 6f |e a dial|og butto|
|00000dc0| 6e 20 69 74 65 6d 20 62 | 79 20 73 68 69 66 74 69 |n item b|y shifti|
|00000dd0| 6e 67 20 69 74 20 6f 66 | 66 20 69 6e 74 6f 20 73 |ng it of|f into s|
|00000de0| 70 61 63 65 2e 20 20 48 | 69 64 65 44 49 74 65 6d |pace. H|ideDItem|
|00000df0| 28 29 0d 20 2a 20 64 6f | 65 73 20 74 68 65 20 73 |(). * do|es the s|
|00000e00| 61 6d 65 20 74 68 69 6e | 67 20 62 75 74 20 75 6e |ame thin|g but un|
|00000e10| 66 6f 72 74 75 6e 61 74 | 65 6c 79 20 69 73 20 6e |fortunat|ely is n|
|00000e20| 6f 74 20 70 72 65 73 65 | 6e 74 20 6f 6e 20 36 34 |ot prese|nt on 64|
|00000e30| 4b 20 52 4f 4d 0d 20 2a | 20 6d 61 63 68 69 6e 65 |K ROM. *| machine|
|00000e40| 73 2e 20 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |s. Insid|e Macint|
|00000e50| 6f 73 68 20 49 56 2d 35 | 39 20 73 61 79 73 20 79 |osh IV-5|9 says y|
|00000e60| 6f 75 20 63 61 6e 20 68 | 69 64 65 20 61 6e 20 69 |ou can h|ide an i|
|00000e70| 74 65 6d 20 62 79 20 61 | 64 64 69 6e 67 0d 20 2a |tem by a|dding. *|
|00000e80| 20 31 36 33 38 34 20 74 | 6f 20 74 68 65 20 6c 65 | 16384 t|o the le|
|00000e90| 66 74 20 61 6e 64 20 72 | 69 67 68 74 20 63 6f 6f |ft and r|ight coo|
|00000ea0| 72 64 69 6e 61 74 65 73 | 20 6f 66 20 74 68 65 20 |rdinates| of the |
|00000eb0| 62 6f 75 6e 64 69 6e 67 | 20 72 65 63 74 61 6e 67 |bounding| rectang|
|00000ec0| 6c 65 2e 0d 20 2a 20 48 | 6f 77 65 76 65 72 2c 20 |le.. * H|owever, |
|00000ed0| 74 68 61 74 20 64 6f 65 | 73 6e 27 74 20 73 65 65 |that doe|sn't see|
|00000ee0| 6d 20 74 6f 20 77 6f 72 | 6b 20 75 6e 6c 65 73 73 |m to wor|k unless|
|00000ef0| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 69 74 73 | the con|trol its|
|00000f00| 65 6c 66 20 69 73 20 6d | 6f 76 65 64 0d 20 2a 20 |elf is m|oved. * |
|00000f10| 61 73 20 77 65 6c 6c 2e | 0d 20 2a 2f 0d 0d 73 74 |as well.|. */..st|
|00000f20| 61 74 69 63 20 76 6f 69 | 64 0d 48 69 64 65 44 6c |atic voi|d.HideDl|
|00000f30| 6f 67 42 75 74 74 6f 6e | 20 28 44 69 61 6c 6f 67 |ogButton| (Dialog|
|00000f40| 50 74 72 20 64 6c 6f 67 | 2c 20 73 68 6f 72 74 20 |Ptr dlog|, short |
|00000f50| 69 74 65 6d 29 0d 7b 0d | 52 65 63 74 09 72 3b 0d |item).{.|Rect.r;.|
|00000f60| 0d 09 53 6b 65 6c 47 65 | 74 44 6c 6f 67 52 65 63 |..SkelGe|tDlogRec|
|00000f70| 74 20 28 64 6c 6f 67 2c | 20 69 74 65 6d 2c 20 26 |t (dlog,| item, &|
|00000f80| 72 29 3b 0d 09 4f 66 66 | 73 65 74 52 65 63 74 20 |r);..Off|setRect |
|00000f90| 28 26 72 2c 20 31 36 33 | 38 34 2c 20 30 29 3b 0d |(&r, 163|84, 0);.|
|00000fa0| 09 53 6b 65 6c 53 65 74 | 44 6c 6f 67 52 65 63 74 |.SkelSet|DlogRect|
|00000fb0| 20 28 64 6c 6f 67 2c 20 | 69 74 65 6d 2c 20 26 72 | (dlog, |item, &r|
|00000fc0| 29 3b 0d 09 4d 6f 76 65 | 43 6f 6e 74 72 6f 6c 20 |);..Move|Control |
|00000fd0| 28 53 6b 65 6c 47 65 74 | 44 6c 6f 67 43 74 6c 20 |(SkelGet|DlogCtl |
|00000fe0| 28 64 6c 6f 67 2c 20 69 | 74 65 6d 29 2c 20 31 36 |(dlog, i|tem), 16|
|00000ff0| 33 38 34 2c 20 30 29 3b | 0d 7d 0d 0d 0d 2f 2a 0d |384, 0);|.}.../*.|
|00001000| 20 2a 20 46 61 6b 65 20 | 61 6e 20 61 6c 65 72 74 | * Fake |an alert|
|00001010| 2c 20 75 73 69 6e 67 20 | 61 6e 20 69 6e 2d 6d 65 |, using |an in-me|
|00001020| 6d 6f 72 79 20 77 69 6e | 64 6f 77 20 61 6e 64 20 |mory win|dow and |
|00001030| 69 74 65 6d 20 6c 69 73 | 74 2e 0d 20 2a 20 54 68 |item lis|t.. * Th|
|00001040| 65 20 6d 65 73 73 61 67 | 65 20 74 6f 20 62 65 20 |e messag|e to be |
|00001050| 70 72 65 73 65 6e 74 65 | 64 20 69 73 20 63 6f 6e |presente|d is con|
|00001060| 73 74 72 75 63 74 65 64 | 20 66 72 6f 6d 20 74 68 |structed| from th|
|00001070| 65 20 66 69 72 73 74 0d | 20 2a 20 66 6f 75 72 20 |e first.| * four |
|00001080| 61 72 67 75 6d 65 6e 74 | 73 2e 20 20 6e 42 75 74 |argument|s. nBut|
|00001090| 74 6f 6e 73 20 69 73 20 | 74 68 65 20 6e 75 6d 62 |tons is |the numb|
|000010a0| 65 72 20 6f 66 20 62 75 | 74 74 6f 6e 73 20 74 6f |er of bu|ttons to|
|000010b0| 20 75 73 65 2c 0d 20 2a | 20 64 65 66 42 75 74 74 | use,. *| defButt|
|000010c0| 6f 6e 20 69 73 20 74 68 | 65 20 64 65 66 61 75 6c |on is th|e defaul|
|000010d0| 74 20 62 75 74 74 6f 6e | 2c 20 74 68 65 20 6e 65 |t button|, the ne|
|000010e0| 78 74 20 74 68 72 65 65 | 20 61 72 67 73 20 61 72 |xt three| args ar|
|000010f0| 65 0d 20 2a 20 74 68 65 | 20 74 69 74 6c 65 73 20 |e. * the| titles |
|00001100| 74 6f 20 70 75 74 20 69 | 6e 74 6f 20 74 68 65 20 |to put i|nto the |
|00001110| 62 75 74 74 6f 6e 73 2e | 20 20 54 68 65 20 72 65 |buttons.| The re|
|00001120| 74 75 72 6e 20 76 61 6c | 75 65 20 69 73 0d 20 2a |turn val|ue is. *|
|00001130| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 6e 75 6d 62 | the but|ton numb|
|00001140| 65 72 20 28 31 2e 2e 6e | 42 75 74 74 6f 6e 73 29 |er (1..n|Buttons)|
|00001150| 2e 20 20 54 68 69 73 20 | 6d 75 73 74 20 62 65 20 |. This |must be |
|00001160| 69 6e 74 65 72 70 72 65 | 74 65 64 0d 20 2a 20 62 |interpre|ted. * b|
|00001170| 79 20 74 68 65 20 63 61 | 6c 6c 65 72 2c 20 73 69 |y the ca|ller, si|
|00001180| 6e 63 65 20 74 68 65 20 | 62 75 74 74 6f 6e 73 20 |nce the |buttons |
|00001190| 6d 61 79 20 62 65 20 67 | 69 76 65 6e 20 61 72 62 |may be g|iven arb|
|000011a0| 69 74 72 61 72 79 0d 20 | 2a 20 74 69 74 6c 65 73 |itrary. |* titles|
|000011b0| 2e 0d 20 2a 0d 20 2a 20 | 6e 42 75 74 74 6f 6e 73 |.. *. * |nButtons|
|000011c0| 20 73 68 6f 75 6c 64 20 | 62 65 20 62 65 74 77 65 | should |be betwe|
|000011d0| 65 6e 20 31 20 61 6e 64 | 20 33 2c 20 69 6e 63 6c |en 1 and| 3, incl|
|000011e0| 75 73 69 76 65 2e 0d 20 | 2a 20 64 65 66 42 75 74 |usive.. |* defBut|
|000011f0| 74 6f 6e 20 73 68 6f 75 | 6c 64 20 62 65 20 62 65 |ton shou|ld be be|
|00001200| 74 77 65 65 6e 20 31 20 | 61 6e 64 20 6e 42 75 74 |tween 1 |and nBut|
|00001210| 74 6f 6e 73 2c 20 69 6e | 63 6c 75 73 69 76 65 2e |tons, in|clusive.|
|00001220| 0d 20 2a 20 63 61 6e 63 | 65 6c 42 75 74 74 6f 6e |. * canc|elButton|
|00001230| 20 73 68 6f 75 6c 64 20 | 62 65 20 62 65 74 77 65 | should |be betwe|
|00001240| 65 6e 20 31 20 61 6e 64 | 20 6e 42 75 74 74 6f 6e |en 1 and| nButton|
|00001250| 73 2c 20 69 6e 63 6c 75 | 73 69 76 65 2c 20 6f 72 |s, inclu|sive, or|
|00001260| 0d 20 2a 20 30 20 69 66 | 20 74 68 65 72 65 27 73 |. * 0 if| there's|
|00001270| 20 6e 6f 20 63 61 6e 63 | 65 6c 20 62 75 74 74 6f | no canc|el butto|
|00001280| 6e 2e 0d 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 73 |n.. */..|pascal s|
|00001290| 68 6f 72 74 0d 46 61 6b | 65 41 6c 65 72 74 20 28 |hort.Fak|eAlert (|
|000012a0| 53 74 72 69 6e 67 50 74 | 72 20 73 31 2c 20 53 74 |StringPt|r s1, St|
|000012b0| 72 69 6e 67 50 74 72 20 | 73 32 2c 20 53 74 72 69 |ringPtr |s2, Stri|
|000012c0| 6e 67 50 74 72 20 73 33 | 2c 20 53 74 72 69 6e 67 |ngPtr s3|, String|
|000012d0| 50 74 72 20 73 34 2c 0d | 09 09 09 73 68 6f 72 74 |Ptr s4,.|...short|
|000012e0| 20 6e 42 75 74 74 6f 6e | 73 2c 20 73 68 6f 72 74 | nButton|s, short|
|000012f0| 20 64 65 66 42 75 74 74 | 6f 6e 2c 20 73 68 6f 72 | defButt|on, shor|
|00001300| 74 20 63 61 6e 63 65 6c | 42 75 74 74 6f 6e 2c 0d |t cancel|Button,.|
|00001310| 09 09 09 53 74 72 69 6e | 67 50 74 72 20 74 31 2c |...Strin|gPtr t1,|
|00001320| 20 53 74 72 69 6e 67 50 | 74 72 20 74 32 2c 20 53 | StringP|tr t2, S|
|00001330| 74 72 69 6e 67 50 74 72 | 20 74 33 29 0d 7b 0d 4d |tringPtr| t3).{.M|
|00001340| 6f 64 61 6c 46 69 6c 74 | 65 72 50 72 6f 63 50 74 |odalFilt|erProcPt|
|00001350| 72 09 66 69 6c 74 65 72 | 3b 0d 47 72 61 66 50 74 |r.filter|;.GrafPt|
|00001360| 72 09 09 73 61 76 65 50 | 6f 72 74 3b 0d 44 69 61 |r..saveP|ort;.Dia|
|00001370| 6c 6f 67 50 74 72 09 64 | 6c 6f 67 3b 0d 48 61 6e |logPtr.d|log;.Han|
|00001380| 64 6c 65 09 09 69 4c 69 | 73 74 48 61 6e 64 6c 65 |dle..iLi|stHandle|
|00001390| 3b 0d 52 65 63 74 09 09 | 62 6f 75 6e 64 73 3b 0d |;.Rect..|bounds;.|
|000013a0| 73 68 6f 72 74 09 09 69 | 74 65 6d 3b 0d 0d 09 49 |short..i|tem;...I|
|000013b0| 6e 69 74 43 75 72 73 6f | 72 20 28 29 3b 0d 09 47 |nitCurso|r ();..G|
|000013c0| 65 74 50 6f 72 74 20 28 | 26 73 61 76 65 50 6f 72 |etPort (|&savePor|
|000013d0| 74 29 3b 0d 09 69 4c 69 | 73 74 48 61 6e 64 6c 65 |t);..iLi|stHandle|
|000013e0| 20 3d 20 4e 65 77 48 61 | 6e 64 6c 65 20 28 35 31 | = NewHa|ndle (51|
|000013f0| 32 4c 29 3b 0d 09 48 4c | 6f 63 6b 20 28 69 4c 69 |2L);..HL|ock (iLi|
|00001400| 73 74 48 61 6e 64 6c 65 | 29 3b 0d 09 42 6c 6f 63 |stHandle|);..Bloc|
|00001410| 6b 4d 6f 76 65 20 28 26 | 69 74 65 6d 4c 69 73 74 |kMove (&|itemList|
|00001420| 2c 20 2a 69 4c 69 73 74 | 48 61 6e 64 6c 65 2c 20 |, *iList|Handle, |
|00001430| 35 31 32 4c 29 3b 0d 09 | 48 55 6e 6c 6f 63 6b 20 |512L);..|HUnlock |
|00001440| 28 69 4c 69 73 74 48 61 | 6e 64 6c 65 29 3b 0d 09 |(iListHa|ndle);..|
|00001450| 48 4e 6f 50 75 72 67 65 | 20 28 69 4c 69 73 74 48 |HNoPurge| (iListH|
|00001460| 61 6e 64 6c 65 29 3b 0d | 09 53 65 74 52 65 63 74 |andle);.|.SetRect|
|00001470| 20 28 26 62 6f 75 6e 64 | 73 2c 20 30 2c 20 30 2c | (&bound|s, 0, 0,|
|00001480| 20 33 35 30 2c 20 31 33 | 35 29 3b 0d 09 64 6c 6f | 350, 13|5);..dlo|
|00001490| 67 20 3d 20 4e 65 77 44 | 69 61 6c 6f 67 20 28 6e |g = NewD|ialog (n|
|000014a0| 69 6c 2c 20 26 62 6f 75 | 6e 64 73 2c 20 22 5c 70 |il, &bou|nds, "\p|
|000014b0| 22 2c 20 66 61 6c 73 65 | 2c 20 64 42 6f 78 50 72 |", false|, dBoxPr|
|000014c0| 6f 63 2c 20 28 57 69 6e | 64 6f 77 50 74 72 29 20 |oc, (Win|dowPtr) |
|000014d0| 2d 31 4c 2c 0d 09 09 09 | 09 09 09 09 66 61 6c 73 |-1L,....|....fals|
|000014e0| 65 2c 20 30 4c 2c 20 69 | 4c 69 73 74 48 61 6e 64 |e, 0L, i|ListHand|
|000014f0| 6c 65 29 3b 0d 09 53 6b | 65 6c 50 6f 73 69 74 69 |le);..Sk|elPositi|
|00001500| 6f 6e 57 69 6e 64 6f 77 | 20 28 64 6c 6f 67 2c 20 |onWindow| (dlog, |
|00001510| 73 6b 65 6c 50 6f 73 69 | 74 69 6f 6e 4f 6e 50 61 |skelPosi|tionOnPa|
|00001520| 72 65 6e 74 44 65 76 69 | 63 65 2c 0d 09 09 09 09 |rentDevi|ce,.....|
|00001530| 09 09 09 46 69 78 52 61 | 74 69 6f 20 28 31 2c 20 |...FixRa|tio (1, |
|00001540| 32 29 2c 20 46 69 78 52 | 61 74 69 6f 20 28 31 2c |2), FixR|atio (1,|
|00001550| 20 35 29 29 3b 0d 09 28 | 28 44 69 61 6c 6f 67 50 | 5));..(|(DialogP|
|00001560| 65 65 6b 29 20 64 6c 6f | 67 29 2d 3e 61 44 65 66 |eek) dlo|g)->aDef|
|00001570| 49 74 65 6d 20 3d 20 64 | 65 66 42 75 74 74 6f 6e |Item = d|efButton|
|00001580| 3b 0d 09 53 6b 65 6c 53 | 65 74 44 6c 6f 67 42 75 |;..SkelS|etDlogBu|
|00001590| 74 74 6f 6e 4f 75 74 6c | 69 6e 65 72 20 28 64 6c |ttonOutl|iner (dl|
|000015a0| 6f 67 2c 20 6f 75 74 6c | 69 6e 65 49 74 65 6d 29 |og, outl|ineItem)|
|000015b0| 3b 0d 0d 09 53 65 74 50 | 6f 72 74 20 28 64 6c 6f |;...SetP|ort (dlo|
|000015c0| 67 29 3b 0d 0d 09 69 66 | 20 28 6e 42 75 74 74 6f |g);...if| (nButto|
|000015d0| 6e 73 20 3c 20 33 29 09 | 09 09 09 2f 2a 20 68 69 |ns < 3).|.../* hi|
|000015e0| 64 65 20 75 6e 75 73 65 | 64 20 62 75 74 74 6f 6e |de unuse|d button|
|000015f0| 73 20 2a 2f 0d 09 7b 0d | 09 09 48 69 64 65 44 6c |s */..{.|..HideDl|
|00001600| 6f 67 42 75 74 74 6f 6e | 20 28 64 6c 6f 67 2c 20 |ogButton| (dlog, |
|00001610| 62 75 74 74 6f 6e 33 49 | 74 65 6d 29 3b 0d 09 09 |button3I|tem);...|
|00001620| 69 66 20 28 6e 42 75 74 | 74 6f 6e 73 20 3c 20 32 |if (nBut|tons < 2|
|00001630| 29 0d 09 09 09 48 69 64 | 65 44 6c 6f 67 42 75 74 |)....Hid|eDlogBut|
|00001640| 74 6f 6e 20 28 64 6c 6f | 67 2c 20 62 75 74 74 6f |ton (dlo|g, butto|
|00001650| 6e 32 49 74 65 6d 29 3b | 0d 09 7d 0d 0d 09 73 77 |n2Item);|..}...sw|
|00001660| 69 74 63 68 20 28 6e 42 | 75 74 74 6f 6e 73 29 09 |itch (nB|uttons).|
|00001670| 09 09 09 2f 2a 20 73 65 | 74 20 62 75 74 74 6f 6e |.../* se|t button|
|00001680| 20 74 69 74 6c 65 73 20 | 2a 2f 0d 09 7b 0d 09 63 | titles |*/..{..c|
|00001690| 61 73 65 20 33 3a 0d 09 | 09 53 65 74 43 54 69 74 |ase 3:..|.SetCTit|
|000016a0| 6c 65 20 28 53 6b 65 6c | 47 65 74 44 6c 6f 67 43 |le (Skel|GetDlogC|
|000016b0| 74 6c 20 28 64 6c 6f 67 | 2c 20 62 75 74 74 6f 6e |tl (dlog|, button|
|000016c0| 33 49 74 65 6d 29 2c 20 | 74 33 29 3b 0d 09 09 2f |3Item), |t3);.../|
|000016d0| 2a 20 66 61 6c 6c 20 74 | 68 72 6f 75 67 68 2e 2e |* fall t|hrough..|
|000016e0| 2e 20 2a 2f 0d 09 63 61 | 73 65 20 32 3a 0d 09 09 |. */..ca|se 2:...|
|000016f0| 53 65 74 43 54 69 74 6c | 65 20 28 53 6b 65 6c 47 |SetCTitl|e (SkelG|
|00001700| 65 74 44 6c 6f 67 43 74 | 6c 20 28 64 6c 6f 67 2c |etDlogCt|l (dlog,|
|00001710| 20 62 75 74 74 6f 6e 32 | 49 74 65 6d 29 2c 20 74 | button2|Item), t|
|00001720| 32 29 3b 0d 09 09 2f 2a | 20 66 61 6c 6c 20 74 68 |2);.../*| fall th|
|00001730| 72 6f 75 67 68 2e 2e 2e | 20 2a 2f 0d 09 63 61 73 |rough...| */..cas|
|00001740| 65 20 31 3a 0d 09 09 53 | 65 74 43 54 69 74 6c 65 |e 1:...S|etCTitle|
|00001750| 20 28 53 6b 65 6c 47 65 | 74 44 6c 6f 67 43 74 6c | (SkelGe|tDlogCtl|
|00001760| 20 28 64 6c 6f 67 2c 20 | 62 75 74 74 6f 6e 31 49 | (dlog, |button1I|
|00001770| 74 65 6d 29 2c 20 74 31 | 29 3b 0d 09 7d 0d 0d 09 |tem), t1|);..}...|
|00001780| 50 61 72 61 6d 54 65 78 | 74 20 28 73 31 2c 20 73 |ParamTex|t (s1, s|
|00001790| 32 2c 20 73 33 2c 20 73 | 34 29 3b 09 09 2f 2a 20 |2, s3, s|4);../* |
|000017a0| 63 6f 6e 73 74 72 75 63 | 74 20 6d 65 73 73 61 67 |construc|t messag|
|000017b0| 65 20 2a 2f 0d 09 53 68 | 6f 77 57 69 6e 64 6f 77 |e */..Sh|owWindow|
|000017c0| 20 28 64 6c 6f 67 29 3b | 0d 0d 09 2f 2a 0d 09 20 | (dlog);|.../*.. |
|000017d0| 2a 20 47 69 76 65 6e 20 | 61 20 6e 69 6c 20 66 69 |* Given |a nil fi|
|000017e0| 6c 74 65 72 20 70 72 6f | 63 2c 20 4d 6f 64 61 6c |lter pro|c, Modal|
|000017f0| 44 69 61 6c 6f 67 28 29 | 20 6e 6f 72 6d 61 6c 6c |Dialog()| normall|
|00001800| 79 20 72 65 74 75 72 6e | 73 20 31 20 69 66 20 52 |y return|s 1 if R|
|00001810| 65 74 75 72 6e 20 6f 72 | 0d 09 20 2a 20 45 6e 74 |eturn or|.. * Ent|
|00001820| 65 72 20 61 72 65 20 68 | 69 74 2e 20 20 54 68 69 |er are h|it. Thi|
|00001830| 73 20 63 61 6e 20 62 65 | 20 69 6e 63 6f 72 72 65 |s can be| incorre|
|00001840| 63 74 20 73 69 6e 63 65 | 20 74 68 65 20 64 65 66 |ct since| the def|
|00001850| 61 75 6c 74 20 69 74 65 | 6d 20 6e 65 65 64 20 6e |ault ite|m need n|
|00001860| 6f 74 0d 09 20 2a 20 62 | 65 20 6f 6e 65 20 66 6f |ot.. * b|e one fo|
|00001870| 72 20 74 68 65 20 22 61 | 6c 65 72 74 22 20 62 65 |r the "a|lert" be|
|00001880| 69 6e 67 20 70 72 65 73 | 65 6e 74 65 64 20 68 65 |ing pres|ented he|
|00001890| 72 65 2e 20 20 54 68 69 | 73 20 70 72 6f 62 6c 65 |re. Thi|s proble|
|000018a0| 6d 20 64 6f 65 73 20 6e | 6f 74 0d 09 20 2a 20 61 |m does n|ot.. * a|
|000018b0| 63 74 75 61 6c 6c 79 20 | 6f 63 63 75 72 20 73 69 |ctually |occur si|
|000018c0| 6e 63 65 20 28 69 29 20 | 61 20 6e 6f 6e 2d 6e 69 |nce (i) |a non-ni|
|000018d0| 6c 20 66 69 6c 74 65 72 | 20 69 73 20 69 6e 73 74 |l filter| is inst|
|000018e0| 61 6c 6c 65 64 20 62 79 | 20 53 6b 65 6c 44 6c 6f |alled by| SkelDlo|
|000018f0| 67 46 69 6c 74 65 72 28 | 29 0d 09 20 2a 20 61 6e |gFilter(|).. * an|
|00001900| 64 20 28 69 69 29 20 74 | 68 65 20 66 69 6c 74 65 |d (ii) t|he filte|
|00001910| 72 20 75 73 65 64 20 62 | 79 20 53 6b 65 6c 44 6c |r used b|y SkelDl|
|00001920| 6f 67 46 69 6c 74 65 72 | 28 29 20 72 65 74 75 72 |ogFilter|() retur|
|00001930| 6e 73 20 74 68 65 20 69 | 74 65 6d 20 6e 75 6d 62 |ns the i|tem numb|
|00001940| 65 72 20 69 6e 0d 09 20 | 2a 20 74 68 65 20 61 44 |er in.. |* the aD|
|00001950| 65 66 49 74 65 6d 20 66 | 69 65 6c 64 2e 0d 09 20 |efItem f|ield... |
|00001960| 2a 2f 0d 0d 09 66 69 6c | 74 65 72 20 3d 20 53 6b |*/...fil|ter = Sk|
|00001970| 65 6c 44 6c 6f 67 46 69 | 6c 74 65 72 20 28 6e 69 |elDlogFi|lter (ni|
|00001980| 6c 2c 20 74 72 75 65 29 | 3b 0d 09 69 66 20 28 63 |l, true)|;..if (c|
|00001990| 61 6e 63 65 6c 42 75 74 | 74 6f 6e 20 21 3d 20 30 |ancelBut|ton != 0|
|000019a0| 29 0d 09 09 53 6b 65 6c | 44 6c 6f 67 43 61 6e 63 |)...Skel|DlogCanc|
|000019b0| 65 6c 49 74 65 6d 20 28 | 63 61 6e 63 65 6c 42 75 |elItem (|cancelBu|
|000019c0| 74 74 6f 6e 29 3b 0d 09 | 4d 6f 64 61 6c 44 69 61 |tton);..|ModalDia|
|000019d0| 6c 6f 67 20 28 66 69 6c | 74 65 72 2c 20 26 69 74 |log (fil|ter, &it|
|000019e0| 65 6d 29 3b 0d 09 53 6b | 65 6c 52 6d 76 65 44 6c |em);..Sk|elRmveDl|
|000019f0| 6f 67 46 69 6c 74 65 72 | 20 28 29 3b 0d 09 48 50 |ogFilter| ();..HP|
|00001a00| 75 72 67 65 20 28 69 4c | 69 73 74 48 61 6e 64 6c |urge (iL|istHandl|
|00001a10| 65 29 3b 0d 09 44 69 73 | 70 6f 73 65 44 69 61 6c |e);..Dis|poseDial|
|00001a20| 6f 67 20 28 64 6c 6f 67 | 29 3b 09 2f 2a 20 74 68 |og (dlog|);./* th|
|00001a30| 69 73 20 61 6c 73 6f 20 | 64 69 73 70 6f 73 65 73 |is also |disposes|
|00001a40| 20 6f 66 20 69 4c 69 73 | 74 48 61 6e 64 6c 65 20 | of iLis|tHandle |
|00001a50| 2a 2f 0d 09 53 65 74 50 | 6f 72 74 20 28 73 61 76 |*/..SetP|ort (sav|
|00001a60| 65 50 6f 72 74 29 3b 0d | 09 72 65 74 75 72 6e 20 |ePort);.|.return |
|00001a70| 28 69 74 65 6d 29 3b 0d | 7d 0d 00 00 00 00 00 00 |(item);.|}.......|
|00001a80| 00 00 01 00 00 00 02 86 | 00 00 01 86 00 00 00 46 |........|.......F|
|00001a90| 3f 3c 00 25 a9 f0 06 90 | 3f 3c 00 25 a9 f0 06 e4 |?<.%....|?<.%....|
|00001aa0| 3f 3c 00 25 a9 f0 07 24 | 3f 3c 00 25 a9 f0 00 00 |?<.%...$|?<.%....|
|00001ab0| 0b 46 61 6b 65 41 6c 65 | 72 74 2e 63 02 00 00 00 |.FakeAle|rt.c....|
|00001ac0| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|00001ad0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 a9 9f 75 b2 00 00 | 00 00 00 00 02 cc 02 a6 |....u...|........|
|00001b00| 3f 3c 00 27 a9 f0 00 00 | 3f 3c 00 28 a9 f0 00 8e |?<.'....|?<.(....|
|00001b10| 3f 3c 00 28 a9 f0 00 e2 | 3f 3c 00 28 a9 f0 00 ea |?<.(....|?<.(....|
|00001b20| 3f 3c 00 28 a9 f0 01 2a | 3f 3c 00 28 a9 f0 00 00 |?<.(...*|?<.(....|
|00001b30| 3f 3c 00 29 a9 f0 01 dc | 3f 3c 00 29 a9 f0 00 de |?<.)....|?<.)....|
|00001b40| 3f 3c 00 2a a9 f0 01 1c | 3f 3c 00 2a a9 f0 01 58 |?<.*....|?<.*...X|
|00001b50| 3f 3c 00 2a a9 f0 01 a0 | 3f 3c 00 2a a9 f0 02 1c |?<.*....|?<.*....|
|00001b60| 3f 3c 00 2a a9 f0 03 06 | 3f 3c 00 2a a9 f0 00 14 |?<.*....|?<.*....|
|00001b70| 3f 3c 00 2b a9 f0 00 c4 | 3f 3c 00 2b a9 f0 11 16 |?<.+....|?<.+....|
|00001b80| 00 00 01 52 00 28 00 1e | 02 21 01 3c 00 18 00 00 |...R.(..|.!.<....|
|00001b90| 11 16 00 00 11 16 00 00 | 00 93 00 04 00 09 00 00 |........|........|
|00001ba0| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 04 00 00 04 00 00 00 48 | 00 48 00 00 00 00 02 db |.......H|.H......|
|00001bf0| 02 40 ff e7 ff ee 02 ff | 02 52 1f 03 05 28 03 fc |.@......|.R...(..|
|00001c00| 00 01 00 00 01 2c 01 2c | 00 00 00 00 0b e7 09 60 |.....,.,|.......`|
|00001c10| 01 2c 00 2d 05 a0 5e ec | 00 26 04 01 01 01 00 18 |.,.-..^.|.&......|
|00001c20| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........|
|00001c30| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 01 00 00 02 41 00 | 00 00 00 04 00 09 00 00 |......A.|........|
|00001c60| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 04 01 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 2c 00 02 00 00 12 15 |........|.,......|
|00001ce0| 00 00 12 1e 09 46 61 6b | 65 41 6c 65 72 74 00 00 |.....Fak|eAlert..|
|00001cf0| 0e aa 00 00 0e b8 0f 48 | 69 64 65 44 6c 6f 67 42 |.......H|ideDlogB|
|00001d00| 75 74 74 6f 6e 00 00 00 | 01 00 00 00 02 86 00 00 |utton...|........|
|00001d10| 01 86 00 00 00 46 00 4f | 29 84 10 e6 00 00 00 1c |.....F.O|).......|
|00001d20| 00 46 00 01 42 42 53 52 | 00 00 00 12 4d 50 53 52 |.F..BBSR|....MPSR|
|00001d30| 00 00 00 1e 01 03 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 03 ef ff ff 00 00 01 56 | 00 00 00 00 00 00 00 00 |.......V|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+